package com.itheima;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author げっしょく
 * @date 2021/9/11
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        BookService service = (BookService) ctx.getBean("service");
        service.save();
/*
        BookDao dao = (BookDao) ctx.getBean("dao");
        dao.save();*/
    }
}
